package com.konne.nightmare.FastPublicOpinion.mvp.presenter;

import com.konne.nightmare.FastPublicOpinion.base.BaseMvpPresenter;
import com.konne.nightmare.FastPublicOpinion.mvp.view.IImportDatabaseView;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.DatabaseListFragment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.ImportExistFragment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.SelectSectionFragment;

/**
 * Create by ws.
 * on Data:2022/2/11  Time:下午 2:17.
 * description: ** .
 */
public class ImportDatabasePresenter extends BaseMvpPresenter<IImportDatabaseView> {
    public void init(int type) {
        switch (type){
            case 0:
                getView().setFragment(SelectSectionFragment.getInstance());
                break;
            case 1:
                getView().setFragment(ImportExistFragment.getInstance());
                break;
            case 2:
                getView().setFragment(DatabaseListFragment.getInstance());
                break;
        }
    }
}
